package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.Categroy;
import com.ruoyi.system.domain.qo.GoodsQo;
import com.ruoyi.system.service.CategroyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/categroy")
public class CategoryController extends BaseController {
    @Autowired
    private CategroyService categroyService;

    @GetMapping("/list")
    public TableDataInfo selectCategroyList() {
        List<Categroy> list = categroyService.selectCategroyList();
        return getDataTable(list);
    }
}
